<?php use_helper('sfAsset'); ?>

<div id="scrolling-partners" class="shadowed">
    <div class="partners-content">
        <div class="rolling-partners">
            <ul>
                <?php foreach($partnersList as $partner): ?>
                    <?php $imagesAttributes = Utils::getImageSize($partner['sfAsset'][ 'Folder' ][ 'relative_path' ], $partner['sfAsset'], null, 100); ?>
                    <?php if(!is_null($imagesAttributes)): ?>
                    <li style="width:<?php echo $imagesAttributes['small']['width'] ?>px; margin-top: <?php echo $imagesAttributes['small']['marginTop'] ?>px ">
                        <a href="<?php echo url_for('@partner_show_detail?name_slug=' . $partner['slug']) ?>">
                            <img src="<?php echo $imagesAttributes['small']['url'] ?>" title="<?php echo $partner['title'] ?>" width="<?php echo $imagesAttributes['small']['width'] ?>" height="<?php echo $imagesAttributes['small']['height'] ?>" alt="<?php echo $partner['title'] ?>" />
                        </a>
                    </li>
                    <?php endif; ?>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
</div>